# coding: utf-8
"""
@python version : python3.10
@file name      : main.py
@date           : 2024/5/14 11:29
@author         : ziyang.yang@aliyun.com
@gitee          : https://gitee.com/ziyangyang1318
@blog           : www.yangziyang.top
@describe       : 
"""
import uvicorn
from fastapi import FastAPI
from apps.app01 import app01
from apps.app02 import app02
from apps.app03 import app03
from apps.app04 import app04
from apps.app05 import app05
from apps.app06 import app06

app = FastAPI()

app.include_router(app01, prefix='/app01', tags=['路径参数'])
app.include_router(app02, prefix='/app02', tags=['查询参数'])
app.include_router(app03, prefix='/app03', tags=['请求体参数'])
app.include_router(app04, prefix='/app04', tags=['FORM表单'])
app.include_router(app05, prefix='/app05', tags=['文件上传'])
app.include_router(app06, prefix='/app06', tags=['响应模型参数'])

# 启动 uvicorn.exe quickstart:app --reload

if __name__ == '__main__':
    file_name = __file__.split(".")[0].split('\\')[-1]
    uvicorn.run(f'{file_name}:app', port=8000, reload=True)
